package com.cnfangmao.masterdata.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cnfangmao.masterdata.model.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * <p>
 * 角色权限关系表 Mapper 接口
 * </p>
 *
 * @author chenxd
 * @since 2020-04-17
 */
public interface RolePermissionDao extends BaseMapper<RolePermission> {
	
	int deleteRolePermission(String roleId);
	
    List<RolePermission> findRolePermissionByRoleId(String roleId);
    
    IPage<RolePermission> queryListRolePermission(IPage<RolePermission> page,@Param("roleName")String roleName,@Param("permissionName")String permissionName);

}
